﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using sipfe.Controllers.Base;
using sipfe.model.dataAccess;

/*
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using sipfe.Controllers.Base;
using sipfe.model.dataAccess;
using sipfe.service.autoayuda;
using sipfe.model.validation;
using System.Data;
using System.Data.Entity;
 * */

namespace sipfe.Controllers.AutoAyuda
{
    public class CompendioAutoController : BaseSipfeController
    {
        BDSIPFEEntities db = new BDSIPFEEntities();
        
        
        
        public JsonResult ListaMaeCompendioAuto(string wordSearch)
        {
            var resultado = (from r in db.SIPMaeCompendio
                             where r.vNomTabla.Contains(wordSearch)
                             select new { r.vNomTabla, r.nIdeCompendio });
            return Json(resultado, JsonRequestBehavior.AllowGet);
        }

    }
}
